Skip to content

Conversation

midas-myth
Copy link
Contributor

No description provided.

… settlement and multichain claims, including nonce management and transaction signing enhancements.
…in useMultichainEvents and integrate it into useMultichainFundingToast for toast closure handling.
…simplifying state dependencies for button text logic.
…csEventsProvider, adding support for multichain actions and refining local action updates based on transaction parameters.
…al, refactoring to separate handling for settlement and multichain claims, enhancing transaction signing and nonce management.
…mproved error handling and user feedback for claiming fees, including toast notifications for success and failure states.
…rySection to display formatted date with comma
…veDateWithComma for improved user experience, updating display logic for sent timestamps.
… functionality for error toast notifications when minimum balance warnings are triggered.
…izing imports for improved code clarity and performance.
@midas-myth midas-myth marked this pull request as ready for review September 2, 2025 11:28
vite.config.ts Outdated
@@ -50,7 +50,7 @@ export default defineConfig(({ mode }) => {
build: {
assetsInlineLimit: 0,
outDir: "build",
sourcemap: true,
sourcemap: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will remove to true

tsconfig.json Outdated
@@ -27,5 +27,5 @@
}
},
"references": [{ "path": "./sdk" }],
"include": ["src", "scripts", "sdk/src/utils/twap/twap"]
"include": ["src", "scripts", "sdk/src/utils/trade/decrease.ts"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted and left only two first

package.json Outdated
"typescript": "5.4.2",
"use-context-selector": "1.4.1",
"viem": "2.7.20",
"viem": "2.26.2",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will update to 2.7.20

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to 2.37.1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used. will delete

@midas-myth midas-myth merged commit ebc6dc0 into release-80 Sep 2, 2025
5 checks passed
@midas-myth midas-myth deleted the multichain-layout-prod branch September 2, 2025 14:05
// isTaken: !isAddressZero(ownerOnOtherNetwork),
// isTakenByCurrentUser:
// !isAddressZero(ownerOnOtherNetwork) && ownerOnOtherNetwork.toLowerCase() === account.toLowerCase(),
// },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, deleted code comments

};
};

export function getUSDValue(value, decimals = 2) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getUSDValue -> getUsdValue

isn't it redundant function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed but the amount of usages justifies wrapping imo

<br />
<br />
You sign each transaction on-chain using your own RPC, typically provided by your wallet. Gas
payments in ETH.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "BTC" for botanix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed, will fix here and below

// onSelectToken(filteredTokens[0]);
// }
// }
// };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be implemented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

// resetSubaccountApproval();
// } else {
// refreshSubaccountData();
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no


export function isStepGreaterOrEqual(
step: MultichainFundingHistoryItem["step"],
than: MultichainFundingHistoryItem["step"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

than -> next

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why next?
its not then its than

const amountReceivedLD = quoteOft?.receipt.amountReceivedLD as bigint;

// ETH is the same as the source chain
// TODO: check if this is correct
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO


// factorByTime > factorByAccount
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -28,7 +28,7 @@ export async function getGasLimit(
}

if (gasLimit < 22000) {
gasLimit = 22000n;
gasLimit = 220000n;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be 22_000n?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

[ARBITRUM]: "arbitrum",
[AVALANCHE]: "avalanche",
[AVALANCHE_FUJI]: "fuji",
// [BASE_MAINNET]: "base",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants